<HTML><HEAD><TITLE>jump_queue(Element, OldQueue, NewQueue)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(queues)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>jump_queue(Element, OldQueue, NewQueue)</H1>
adds the new element at the front of the list
<H2>Description</H2>

    adds the new element at the front of the list.  Unlike join_queue,
<PRE>
 	jump_queue(1, OldQ, NewQ1),
 	jump_queue(2, OldQ, NewQ2)
</PRE>
    *does* work, though if you add things at the end of NewQ1 they
    will also show up in NewQ2.  Note that
<PRE>
 	jump_queue(1, OldQ, MidQ),
 	jump_queue(2, MidQ, NewQ)
</PRE>
    makes NewQ start 2, 1, ...
    

</BODY></HTML>
